import {createRouter, createWebHistory} from "vue-router"

import TodoList from "../views/todo-list.vue";
import HelloWorld from "../views/hello-world.vue";

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: "",
            component: HelloWorld,
            name: 'hello-world'
        },
        {
            path: "/index",
            component: TodoList,
            name: 'todo-list-name'
        },
    ]
})

export default router
